package com.company;



public class Main {

    public static void main(String[] args) {
	// write your code here
        //StringBuilder()
        //构造一个没有字符的字符串构建器，初始容量为16个字符
        StringBuilder st=new StringBuilder();
        System.out.println("st="+st);
        System.out.println("st所占的长度"+st.length());

        //StringBuilder(String str)
        //构造一个初始化为指定字符串内容的字符串构建器。
        StringBuilder st1=new StringBuilder("繁华梓");
        System.out.println("st1="+st1);
        System.out.println("st1所占的长度"+st1.length());
    }
}
